package com.hdax.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hdax.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hdax.vo.ActiveUser;
import com.hdax.vo.PwdVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2021-03-22
 */
@Repository
public interface UserMapper extends BaseMapper<User> {
    User findUserByCustomerId(Integer cusId);
//    int deleteBetch(List<Integer> ids);
//    IPage<User> selectPageVo(Page<User> page, @Param("user") User user);
//    int deleteOne(Integer id);
//    ActiveUser selectUserByName(String username);
//    int addUser(@Param("user") User user);
//    int updateUser(@Param("user") User user);
//    User findById(Integer id);
//    User selectUserById(Integer id);



    int deleteBetch(List<Integer> ids);
    IPage<User> selectPageVo(Page<User> page, @Param("user") User user);
    int deleteOne(Integer id);
    ActiveUser selectUserByName(String username);
    int addUser(@Param("user") User user);
    int updateUser(@Param("user") User user);
    User findById(Integer id);
    User selectUserById(Integer id);
    int updatePwd(@Param("pwdVo") PwdVo pwdVo);
}
